<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    'use strict';
    function xunhuan(){
        for (var i = 0; i < 10; i++) {
            console.log(i);
        }
        console.log(i+1);//问题  var定义的变量出了循环还可以用
    }
    xunhuan();
</script>
</body>
</html>